package com.gnerv.author.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gnerv.author.entity.ArticleConfig;
import com.gnerv.author.mapper.ArticleConfigMapper;
import com.gnerv.author.service.IArticleConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 博客平台-文章配置表 服务实现类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-18
 */
@Service
public class ArticleConfigServiceImpl extends ServiceImpl<ArticleConfigMapper, ArticleConfig> implements IArticleConfigService {

    @Autowired
    ArticleConfigMapper articleConfigMapper;

    @Override
    public boolean createArticleConfig(ArticleConfig articleconfig) {
        return true;
    }

    @Override
    public boolean deleteArticleConfig(String bId) {
        return true;
    }

    @Override
    public boolean updateArticleConfig(ArticleConfig articleconfig) {
        return true;
    }

    @Override
    public ArticleConfig selectArticleConfig(String bId) {
        ArticleConfig articleConfig = articleConfigMapper.selectOne(new QueryWrapper<>(new ArticleConfig(bId)));
        return articleConfig;
    }

    @Override
    public List<ArticleConfig> listArticleConfig(ArticleConfig articleconfig) {
        return null;
    }
}
